package com.gopay.common.domain.bis;

import javax.persistence.*;

/**
 * @BisScanPayConfig.java
 * @author dongdh
 * @2016-08-04 下午16:22:01  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "BIS_SCAN_PAY_CH_CFG")
public class BisScanPayConfig extends BaseBisBankExtConfig {

    /**
     * 
     */
    private static final long serialVersionUID = -3665533657551507154L;

    /**
     * 流水号
     */
    @Id
    @Column(name = "SQ")
    @SequenceGenerator(name="BIS_SCAN_PAY_CH_CFG_SQ_GENERATOR", allocationSize=1,initialValue=1, sequenceName="BIS_SCAN_PAY_CH_CFG_SEQ")
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="BIS_SCAN_PAY_CH_CFG_SQ_GENERATOR")
    private int id;

    /**
     * 是否支持信用卡
     * 
     * 0 - 否 1 - 是
     */
    @Column(name = "IS_DEBIT_CARD", nullable = false, precision = 1, scale = 0)
    private boolean debitCard;

    /**
     * 是否支持信用卡
     * 
     * 0 - 否 1 - 是
     */
    @Column(name = "IS_CREDIT_CARD", nullable = false, precision = 1, scale = 0)
    private boolean creditCard;

    /**
	 * 退款请求地址
	 */
    @Column(name = "REFUND_URL")
	public String refundUrl;
	/**
	 * 退款查询请求地址
	 */
    @Column(name = "REFUND_QUERY_URL")
	public String refundQueryUrl;
    /**
     * 退款渠道
     */
    @Column(name = "REFUND_CHANNEL")
    private String refundChannel;
    /**
     * 是否支持一户一码模式
     */
    @Column(name = "MERCHANT_MODEL")
    private String merchantModel;
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public boolean isDebitCard() {
        return debitCard;
    }

    public void setDebitCard(boolean debitCard) {
        this.debitCard = debitCard;
    }

    public boolean isCreditCard() {
        return creditCard;
    }

    public void setCreditCard(boolean creditCard) {
        this.creditCard = creditCard;
    }

	public String getRefundUrl() {
		return refundUrl;
	}

	public void setRefundUrl(String refundUrl) {
		this.refundUrl = refundUrl;
	}

	public String getRefundQueryUrl() {
		return refundQueryUrl;
	}

	public void setRefundQueryUrl(String refundQueryUrl) {
		this.refundQueryUrl = refundQueryUrl;
	}

	public String getRefundChannel() {
		return refundChannel;
	}

	public void setRefundChannel(String refundChannel) {
		this.refundChannel = refundChannel;
	}

	public String getMerchantModel() {
		return merchantModel;
	}

	public void setMerchantModel(String merchantModel) {
		this.merchantModel = merchantModel;
	}
}
